package com.example.basemvp.base;

import android.app.Application;
import android.content.Context;

import com.example.basemvp.util.log.XLog;

import java.io.File;

public class BaseApplication extends Application {
    private static Context sContext;

    @Override
    public void onCreate() {
        super.onCreate();
        sContext = this;
        BaseActivityObserver observer = new BaseActivityObserver();
        registerActivityLifecycleCallbacks(observer);
        XLog.init(this,true,false,"base" + File.separator + "log");
    }

    public static Context getContext() {
        return sContext;
    }
}
